﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MongoDB.Bson;

namespace DataMongo.Entities
{
    public class FeedPost
    {
        public ObjectId _id { get; set; }
        public int FeedPostId { get; set; }
        public string Title { get; set; }
        public string ShortDescription { get; set; }
        public string FullDescription { get; set; }
        public int SourceId { get; set; }
        public int CategoryId { get; set; }
        public string PublishDate { get; set; }
        public string ImageURL1 { get; set; }
        public string ImageURL2 { get; set; }
        public string SourceLink { get; set; }
        public int FacebookCount { get;set; }
        public int TwitterCount { get; set; }
        public int GooglePlusCount { get; set; }
        public int NumberofViews { get; set; }
        public string Tags { get; set; }
        public int BreakCount { get; set; }
        public bool IsUpcoming { get; set; }
        public bool IsActive { get; set; }
        public string PostType { get; set; }
        public int PostByUserId { get; set; }

        [NotMapped]
        public List<SelectListItem> CategoryList { get; set; }

        [NotMapped]
        public List<SelectListItem> SourceList { get; set; }

    }
}